{include file="header.tpl"}
<div id="artsav_main_content">
<div class="top">
<div class="bottom">
<div class="left">
<div class="right">
<div class="left_top">
<div class="left_bottom">
<div class="right_top">
<div class="right_bottom">
<div class="inside">




<div class='content'>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">

<table class='tabs' cellpadding='0' cellspacing='0'>
<tr>
<td class='tab0'>&nbsp;</td>
<td class='tab2' NOWRAP><a href="{$currentPage}messages/inbox">Отримані</a></td>
<td class='tab'>&nbsp;</td>
<td class='tab2' NOWRAP><a href="{$currentPage}messages/sent">Надіслані</a></td>
<td class='tab3'>&nbsp;</td>
</tr>
</table>

<table cellpadding='0' cellspacing='0'>
<tr>
<td class='messages_left'>
  <img src="{$currentPage}application/templates/images/icons/messages-compose.png" border='0' class='icon_big'>
  <div class='page_header'>Написати нове повідомлення</div>
    <div>Ви можете написати повідомлення будь-кому з ваших друзів</div>
</td>
<td class='messages_right'>
  <table cellpadding='0' cellspacing='0'>
  <tr><td class='button' nowrap='nowrap'>
    <img src="{$currentPage}application/templates/images/icons/sendmessage16.gif" border='0' class='icon'><a href="{$currentPage}messages/compose">Написати повідомлення</a>
  </td></tr></table>
</td>
</tr>
</table>
<br>
			<div id="ajax_loader" style="display:none;" align="center"><img src="{$currentPage}application/images/ajax-loader.gif" border="0"></div>
					<div id="send_result"></div>
<div id="send_message_div">
			<form name="send_form" method="post">
			<table class="b_a" style="margin-bottom: 10px;" cellpadding="4" cellspacing="0" width="90%">
			<tbody>
			<tr>
				<td>
					<div style="color: rgb(255, 51, 51); padding-bottom: 0px;"></div>
				</td>
			</tr>
			<tr>
				<td>
					<table cellpadding="4" cellspacing="0" width="100%">
						<tbody>

						{if $action_type=='single_user'}
						<tr>
							<td class="form1">Кому:</td>
							<td class="form2"><a href="{$action_url}">{$action_name}</a>
							<input id="mailTo" type="hidden" name="mailTo" value="{$action_name}" type="text" readonly>
							</td>
						</tr>
						{else}
						<tr>
							<td class="form1">Кому:</td>
							<td class="form2">
                   {$ReceiverView}
								</td>
						</tr>
						{/if}
						<tr>
							<td class="form1">Тема:</td>
							<td class="form2"><input id="mailSubject" name="mailSubject" style="width: 100%;" class="text" value="" type="text"></td>
						</tr>
			
						<tr>
							<td class="form1" valign="top">Повідомлення:</td>
							<td class="form2">
							{$insert_smiley}
							<textarea name="mailContent" rows="6" style="width: 100%;" id="mailContent" onkeypress="ctrlEnter(event);"></textarea></td>
						</tr>
						
						<tr>
						<td></td>
							<td colspan="2">{$smiley_table}</td>
						</tr>

						<tr>
							<td class="form1"></td>
							<td class="form2">
							<div class="form-submit">
							<input value="Відправити" type="button" name="submitbutton" class="form-submit round-btn" onClick="sendMessage('{$action_id}','{$action_type}','{$currentPage}');">
							<input value="Відхилити" type="button" class="form-submit round-btn" onClick="window.location='{$currentPage}messages/inbox';">
							</div>
							</td>
						</tr>
						</tbody>
					</table>
				</td>
			</tr>
			</tbody>
			</table>
			</form>
			</div>
    </td>
  </tr>
</table>
</div>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

{include file="footer.tpl"}